//                                               -*-java-*-

package wtkx.ps;
option optimize_for = SPEED;

enum Op {
    OpenByPath = 1;
    OpenByUrl  = 2;
    OpenWithContent = 3;
    CloseById = 3;
    UpdateAppend = 4;
    UpdateInsert = 5;
    UpdateReplace = 6;
    UpdateDelete = 7;
    Close = 8;
    Heartbeat = 9;
}
message Update {
    required Op op = 1;
    optional string id = 2;
    optional string at = 3;
    optional string path = 4;
    optional string url = 5;
    optional uint32 start = 6;
    optional uint32 end = 7;
    optional string search = 8;
    optional string with = 9;
    optional bytes content = 10;
}
